<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>企业用户</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../assets/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../js/formSelects/formSelects-v4.css">
</head>

<body>
<fieldset class="layui-elem-field layui-field-title" style="padding-top: 5px;border: hidden">
    <form class="layui-form" action="" lay-filter="dataForm">
        <div class="layui-form-item layui-col-md11 layui-col-sm11">
            <label class="layui-form-label">企业名称</label>
            <div class="layui-input-block">
                <input type="text" name="name"  placeholder="企业名称" readonly class="layui-input">
            </div>
        </div>
        <div class="layui-form-item layui-col-md11 layui-col-sm11">
            <label class="layui-form-label">营业执照号</label>
            <div class="layui-input-block">
                <input type="text" name="licNo"  placeholder="营业执照号" readonly class="layui-input">
            </div>
        </div>
        <div class="layui-form-item layui-col-md11 layui-col-sm11">
            <label class="layui-form-label">联系人</label>
            <div class="layui-input-block">
                <input type="text" name="userName"  placeholder="联系人" readonly class="layui-input">
            </div>
        </div>
        <div class="layui-form-item layui-form-text layui-col-md11 layui-col-sm11">
            <label class="layui-form-label">手机号(企业账号)</label>
            <div class="layui-input-block">
                <input type="text" name="phone"  placeholder="手机号" readonly class="layui-input">
            </div>
        </div>
        <div class="layui-form-item layui-form-text layui-col-md11 layui-col-sm11">
            <label class="layui-form-label">新增时间</label>
            <div class="layui-input-block">
                <input type="text" name="insertTime"  readonly class="layui-input">
            </div>
        </div>
<!--        <div class="layui-form-item layui-form-text layui-col-md11 layui-col-sm11">-->
<!--            <label class="layui-form-label">编辑时间</label>-->
<!--            <div class="layui-input-block">-->
<!--                <input type="text" name="updateTime"  readonly class="layui-input">-->
<!--            </div>-->
<!--        </div>-->
    </form>
</fieldset>
<script src="../assets/layui/layui.js"></script>
<script>
    layui.config({
        base: '../js/'
    });
    layui.use(['jquery','form','common'], function () {
        var form = layui.form,
                $ = layui.jquery,
                common = layui.common;
        var id = common.getUrlParam("id");

        //获取用户信息
        $.ajax({
            url: "info",
            dataType: "json",
            data: { id: id },
            success: function (rtn) {
                if (rtn && rtn.code===0) {
                    var data = rtn.data;
                    form.val('dataForm',{
                        name:data.name,
                        licNo:data.licNo,
                        userName:data.userName,
                        phone:data.phone,
                        insertTime:data.insertTime
                        // updateTime:data.updateTime
                    });
                }
            }
        });
    })
</script>
</body>
</html>